#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
using namespace std;
#include <string>

int main()
{
	int num = 123;
	string s = to_string(num);
	for (auto e : s)
	{
		cout << e << " ";
	}
	return 0;
}